<div class="venuebatchDetails">
 <div class="tab-pane" id="venudetail">
    <?php
    $classWithVenue = courses::getCourseWithVenues($model->id);
    foreach ($classWithVenue as $venueValue) {
        ?>
        
       
		<h2 class="remmarginT"><?php echo $venueValue->courseVenue->name; ?></h2>
            <p class="remmarginB"><?php echo $venueValue->courseVenue->name; ?></p>
            <p class="remmarginB"><?php echo $venueValue->courseVenue->address_line1 . ', ' . $venueValue->courseVenue->address_line2; ?></p> 
            <p class="remmarginB"><?php echo $venueValue->courseVenue->city->city_name . ', ' . $venueValue->courseVenue->state->name; ?></p> 
            <p class="remmarginB"><?php echo $venueValue->courseVenue->country->name . ', ' . $venueValue->courseVenue->zip_code; ?></p>
       
        <div class="clear"></div>
       
        <?php
        $batchCount=1;
        $batchdetails = courses::getCoursesBatch($model->id, $venueValue->course_venue_id);
        foreach ($batchdetails as $batchValue) {
             echo '<h2>Batch Details - '.$batchCount.'</h2>';
            /* ............................ Here is batch details start................................ */
            ?>
          <div class="viewTable addmarginB20">
              <div class="detail scroll-item">
                 <div class="rowG th"><div class="col col3"><div class="padding"><h5>Start Date</h5></div></div>
				 <div class="col col3"><div class="padding"><h5>End Date</h5></div></div>
                 <div class="last col3"><div class="padding"><h5>Price</h5></div></div>
			   </div>
              <div class="rowG tr">
                    <div class="col col3"><div class="padding"><p><?php echo $batchValue->date_from; ?></p></div></div>
                    <div class="col col3"><div class="padding"><p><?php echo $batchValue->date_to; ?></p></div></div>
                    <div class="col col3"><div class="padding"><p><?php echo $batchValue->price; ?></p></div></div>
                </div>
           
		</div>
       </div>
            <div class="clear"></div>
            <?php
            /* --------------------  batch  EarlyDiscount  details Start------------------------------------ */
            $classEarlyDiscount = courses::getCourseBatchEarlyBirdDiscount($model->id, $batchValue->id);
            if (!empty($classEarlyDiscount)) {
                echo ' <h2>Early Discount</h2>';
                $this->renderPartial('/courseEarlyDiscount/_courseEarlyDiscount', array('classEarlyDiscount' => $classEarlyDiscount));
            }
            ?>
            <div class="clear"></div>
            <?php /* --------------------  batch  EarlyDiscount  details end ------------------------------------ */ ?>

            <?php
            /* --------------------  Batch  GroupDiscount  details Start------------------------------------ */
            $classGroupDiscount = courses::getCourseBatchGroupDscount($model->id, $batchValue['id']);
            if (!empty($classGroupDiscount)) {
                echo ' <h2>Group Discount</h2>';
                $this->renderPartial('/courseGroupDiscount/_classGroupDiscount', array('classGroupDiscount' => $classGroupDiscount));
            }
            ?>
            <div class="clear"></div>
            <?php
						/* -------------------- Batch  GroupDiscount  details End------------------------------------ */
			/* -------------------- Batch  Batche day & date  Sessions  details start------------------------------------ */
			$customeDaysSessionForbatch = Courses::getCustomeSecheduleDaySession($model->id, $batchValue['id']);
			$customedateSessionForbatch = Courses::getCustomeSecheduledateSession($model->id, $batchValue['id']);
            $this->renderPartial('/batcheSession/_courseBatchSession', array('customeDaysSessionForbatch' => $customeDaysSessionForbatch,'customedateSessionForbatch' => $customedateSessionForbatch));
			/* End of Batch  Batche day & date  Sessions */


            /* -------------------- Batch ClassStructure   details end------------------------------------ */
            $classStructure = classes::getClassStructure($model->id, $batchValue->id);
            if (!empty($classStructure)) {
                echo ' <h2>Class Structure </h2>';
                $this->renderPartial('/classStructures/_classCourseStructureDetails', array('classStructure' => $classStructure));
            }
			?>
            <!--<p class="alignR remmarginB padding20px"><a class="btn" href="javascript:void(0);" onclick="return BookNow(<?php //echo $venueValue->course_venue_id;?>,<?php //echo $batchValue->id;?>);">Book Now</a></p>-->
            <?php
            $batchCount++;
        }
        /* ............................ Here is batch details end................................ */
    }
    ?>
	 </div>
</div>
